﻿namespace Netbits.Common.General.CommandLine
{
	/// <summary>
	/// Represent a command-line argument with NO value
	/// </summary>
	public sealed class ArgumentNoValue : ArgumentBase<bool>
	{
		#region Constructor

		/// <summary>
		/// Create new instance of this class with specified short-name
		/// </summary>
		/// <param name="ShortName_">Short-name of this argument.</param>
		public ArgumentNoValue( string ShortName_ ) : base( ShortName_ )
		{
		}
		
		#endregion

		#region Overrides

		/// <summary>
		/// Parse the specified value. 
		/// Always true!
		/// </summary>
		/// <param name="Value_">Value to parse.</param>
		public override void Parse( string Value_ )
		{
			IsSet = true;
		}

		#endregion

	}
}
